<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:a4j="http://richfaces.org/a4j"
	xmlns:rich="http://richfaces.org/rich"
	xmlns:c="http://java.sun.com/jsp/jstl/core"
	xmlns:sec="http://www.springframework.org/security/tags">

<head>
<title><h:outputText value="PeyCard - Teknei" /></title>
<script src="static/scripts/IsNumber.js"></script>
<script src="static/scripts/Desactivar.js"></script>
<script src="static/scripts/Valida_Dato.js"></script>
<meta http-equiv="content-type" content="text/xhtml; charset=UTF-8" />
<link
	href="http://fonts.googleapis.com/css?family=Open+Sans:400,300,600,700|Archivo+Narrow:400,700"
	rel="stylesheet" type="text/css" />
<link href="${request.contextPath}/static/css/style.css"
	rel="stylesheet" type="text/css" media="screen" />
</head>
<body>
	<div id="menu-wrapper">
		<div id="menu">
			<ul>
			</ul>
		</div>
		<!-- end #menu -->
	</div>
	<div id="header-wrapper">
		<div id="header">
			<div id="logo">
				<h1>PeyCard Teknei</h1>
			</div>
		</div>
	</div>
	<div id="wrapper">
		<!-- end #header -->
		<div id="page">
			<div id="page-bgtop">
				<div id="page-bgbtm">
					<a4j:form>
						<rich:toolBar style="width:100%">
							<sec:authorize ifAllGranted="1">
								<rich:menuItem submitMode="none"
									action="#{beanMenu.goToPortalUserPage}">
									<a4j:commandLink value="#{msg.usuarios}" reRender="form"
										style="color:white" action="#{beanMenu.goToPortalUserPage}" />
								</rich:menuItem>
							</sec:authorize>
							<rich:menuItem submitMode="none">
								<a4j:commandLink value="#{msg.usuariosApp}" reRender="form"
									style="color:white" action="#{beanMenu.goToMobileUserPage}" />
							</rich:menuItem>
							<sec:authorize ifAllGranted="2">
								<!-- 3 -->
								<rich:menuItem submitMode="none">
									<a4j:commandLink value="#{msg.comercios}" reRender="form"
										style="color:white" action="#{beanMenu.goToCompanyPage}" />
								</rich:menuItem>
							</sec:authorize>
							<sec:authorize ifAnyGranted="2">
								<!-- 3 -->
								<rich:menuItem submitMode="none">
									<a4j:commandLink value="#{msg.dispositivos}" reRender="form"
										style="color:white" action="#{beanMenu.goToReaderPage}" />
								</rich:menuItem>
							</sec:authorize>
							<sec:authorize access="hasRole('2')">
								<rich:menuItem submitMode="none">
									<a4j:commandLink value="#{msg.transacciones}" reRender="form"
										style="color:white" action="#{beanMenu.goToTransactionPage}" />
								</rich:menuItem>
								<rich:toolBarGroup location="right">
									<a href="${request.contextPath}/j_spring_security_logout"
										style="color: white"> Cerrar Sesión</a>
								</rich:toolBarGroup>
							</sec:authorize>
						</rich:toolBar>
						<a4j:status onstart="#{rich:component('wait')}.show()"
							onstop="#{rich:component('wait')}.hide()" />
						<rich:modalPanel id="wait" autosized="true" width="150"
							height="60" moveable="false" resizeable="false">
							<f:facet name="header">
								<h:outputText value="Procesando" />
							</f:facet>
							<h:graphicImage value="/static/images/ajax-loader.gif"
								id="loaderGif" />
							<h:outputText value="Por favor espere....." />
						</rich:modalPanel>
					</a4j:form>
					<h2 class="title">
						<ui:insert name="title">Default title</ui:insert>
					</h2>
					<div style="clear: both;">&nbsp;</div>
					<div class="entry">
						<p>
							<ui:insert name="content">Default content</ui:insert>
						</p>
						<div style="clear: both;">&nbsp;</div>
					</div>
					<!-- end #content -->

					<div style="clear: both;">&nbsp;</div>
				</div>
			</div>
		</div>
		<!-- end #page -->
	</div>
	<div id="footer">
		<p>&copy; 2013 PeyCard.</p>
	</div>
	<!-- end #footer -->
</body>
</html>
